﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using Fulcrum.DispatcherProxies;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Fulcrum.UnitTests.DispatcherProxies
{
    [TestClass]
    public class DispatcherProxyMemberInfoTests
    {
        [TestMethod]
        public void DispatcherProxyMemberInfoIsNewTrue()
        {
            var info = new TestMemberInfo(true);
            Assert.IsTrue(info.IsNew);
        }

        [TestMethod]
        public void DispatcherProxyMemberInfoIsNewFalse()
        {
            var info = new TestMemberInfo(false);
            Assert.IsFalse(info.IsNew);
        }

        class TestMemberInfo : DispatcherProxyMemberInfo
        {
            public TestMemberInfo(bool isNew)
                : base(isNew)
            { 
                // nothing
            }
        }
    }
}
